#ifndef _CONFIG_H
#define _CONFIG_H

typedef struct _Config_t {
	char * host;
	unsigned short port;

	/* authentication information */
	char * username;
	char * password;

	/* be verbose (for debugging purpose) */
	int verbose;
} Config_t;


/* config.c */
Config_t *config_create(void);
void config_destroy(Config_t *config);
int config_is_valid(Config_t *config);
void config_usage(const char *exec_name);
int config_parse_cmdline(Config_t *conf, int argc, char **argv);
void config_display( Config_t * config );

#endif
